package com.bj.zspace.cloud.order.feign.fallback;
import java.math.BigDecimal;

import com.bj.zspace.cloud.model.product.Product;
import com.bj.zspace.cloud.order.feign.ProductFeignClient;
import org.springframework.stereotype.Component;

@Component
public class ProductFeignClientFallback implements ProductFeignClient {
    @Override
    public Product getProduct(Long productId) {
        Product product = new Product();
        product.setId(0L);
        product.setPrice(new BigDecimal("0"));
        product.setProductName("");
        product.setNum(0);

        return product;
    }
}
